gtk_widget_unparent (priv->cell_view);
_gtk_bin_set_child (GTK_BIN (container), NULL);
gtk_widget_queue_resize (GTK_WIDGET (container));
+ priv->cell_view = NULL;
}
gtk_widget_set_parent (widget, GTK_WIDGET (container));
_gtk_bin_set_child (GTK_BIN (container), widget);
- if (priv->cell_view &&
- widget != priv->cell_view)
- {
- /* since the cell_view was unparented, it's gone now */
- priv->cell_view = NULL;
- }
-
if (priv->has_entry)
{
/* this flag is a hack to tell the entry to fill its allocation.